package com.yfqy.admin.domain.dto.system;

import com.yfqy.admin.constant.MyConstants;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
public class AddSysUser {

    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空")
    private String username;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    private String password;

    /**
     * 昵称
     */
    @NotBlank(message = "昵称不能为空")
    private String nickname;

    /**
     * 邮箱
     */
    @Email(regexp = MyConstants.EMAIL_REGEX, message = "邮箱格式不正确")
    private String email;

}
